<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>业务表单</title>
    <%@include file="/common/header.jspf"%>
    <SCRIPT src="${ctx}/resources/js/hiddenDanger/hdAccept/accept.js" type="text/javascript"></SCRIPT>
</head>
<body>
<div class="menu-right" style="">
    <a class="button icon-save" id="btn_save">
        保存
    </a>
  <%--  <a class="button icon-refer" id="">
        提交
    </a>
    <a class="button icon-export">
        导入
    </a>--%>
</div>
    <input type="hidden" id="hdId" name="id" value="${hdInfo.id}"/>
    <div class="information">
        <div class="information-title">
            <p>隐患基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle" style="height: 220px;">
            <div style="clear: both">
                <div class="form_one" style="width: 720px;">
                    <label class="lable-style">隐患名称:</label>
                    <input type="text" class="easyui-textbox" editable="false" style="width: 598px;" name="name" value="${hdInfo.name}" required="true" readonly>
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患所在单位:</label>
                    <input  class="easyui-textbox" style="width: 240px;" editable="false" name="deptId" required="true" validType="validSelect" value="${hdInfo.dept.name}" readonly>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width:720px">
                    <label class="lable-style">隐患所在部位:</label>
                    <input type="text" class="easyui-textbox" style="width:598px;" editable="false" name="site" required="true" value="${hdInfo.site}" readonly>
                </div>
                <div class="form_one">
                    <label class="lable-style">关键装置/要害部位:</label>
                    <input type="text" class="easyui-textbox" style="width: 240px;" editable="false" name="keyEquipmentId" value="${hdInfo.keyEquipmentId}" readonly>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">隐患原因:</label>
                    <input class="easyui-textbox" name="reasonId" editable="false" style="width: 240px;" value="${hdInfo.reason.name}" readonly>
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患分类:</label>
                    <input class="easyui-textbox" name="typeId" editable="false" style="width: 240px;"  value="${hdInfo.type.name}" readonly>
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患来源:</label>
                    <input class="easyui-textbox" name="sourceId" editable="false" style="width: 240px;"  value="${hdInfo.source.name}" readonly>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">项目责任单位:</label>
                    <input class="easyui-textbox" class="easyui-textbox" style="width: 240px;" name="dutyDeptId" editable="false" value="${hdInfo.dutyDept.name}" readonly>
                </div>
                <div class="form_one">
                    <label class="lable-style">所属板块:</label>
                    <input class="easyui-textbox" name="plateId" editable="false" style="width: 240px;" value="${hdInfo.plate.name}" required="true" validType="validSelect" readonly>
                </div>
                <div class="form_one">
                    <label class="lable-style">年度:</label>
                    <input class="easyui-textbox" name="yearth" editable="false" style="width: 240px;" required="true" validType="validSelect" value="${hdInfo.yearth}" readonly>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">计划完成时间:</label>
                    <input class="easyui-textbox" style="width: 240px;" name="planFinishTime" editable="false" value="${hdInfo.planFinishTime}" readonly>
                </div>
                <div class="form_one">
                    <label class="lable-style">实际完成时间:</label>
                    <input class="easyui-textbox" style="width: 240px;" name="actualFinishTime" editable="false" value="${hdInfo.planFinishTime}" readonly>
                </div>
            </div>
            <div style="clear: both;height:57px;">
                <div class="form_one" style="width: 900px;">
                    <label class="lable-style">隐患描述:</label>
                    <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" name="description" editable="false" value="${hdInfo.description}" readonly>
                </div>
            </div>
            <div style="clear: both;height:57px;" >
                <div class="form_one fotm-textarea">
                    <label class="lable-style">备注:</label>
                    <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" editable="false" name="remarks" value="${hdInfo.remarks}" readonly>
                </div>
            </div>
            <div style="clear: both;height:57px;">
                <div class="form_one">
                    <label class="lable-style">主管部门:</label>
                    <input class="easyui-textbox" style="width: 240px;" name="competentDeptId" editable="false" value="${hdInfo.competentDept.name}" readonly>
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患负责人:</label>
                    <input type="hidden" id="chargeUserId" name = "chargeUserId" value="${hdInfo.chargeUser.id}">
                    <input class="easyui-textbox" editable="false" required="true" validType="validSelect" style="width: 240px;"  value="${hdInfo.chargeUser.name}" readonly>
                </div>

            </div>
        </div>
    </div>
<form id="hdAcceptForm" method="post">
    <input type="hidden" name="hdId" value="${hdInfo.id}">
    <div class="information">
        <div class="information-title">
            <p>验收信息相关附件</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <accessory:accessorySimple permission="write"  packageKey="yhys" uploadUserId="${loginUser.id}"   accessoryType = "txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
    </div>
    <div class="information" style="height:300px;">
        <div class="information-title">
            <p>验收信息</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <div class="cuttle" style="height: 220px;">
            <div style="" >
                <div class="form_one">
                    <label class="lable-style">实际金额(万元):</label>
                    <input class="easyui-textbox" style="width: 240px;" name="actualCost" required="true" validType="">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both;height:57px;" >
                <div class="form_one fotm-textarea">
                    <label class="lable-style">验收意见:</label>
                    <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" required="true" name="acceptOption" />
                    <span>*</span>
                </div>
            </div>
            <div style="">
                <div class="form_one">
                    <label class="lable-style">验收人:</label>
                    <input type="hidden" id="acceptUserId" name = "acceptUserId">
                    <input class="easyui-textbox" id="acceptUser" editable="false" style="width: 240px;" required="true">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">验收时间:</label>
                    <input class="easyui-datebox" editable="false" style="width: 240px;" required="true" name="acceptTime" >
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both;height:57px;" >
                <div class="form_one">
                    <label class="lable-style">是否通过验收:</label>
                    <select class="easyui-combobox" id="acceptState" style="width: 240px;" required="true" panelMaxHeight="50px"  editable="false" name="acceptState" >
                        <option value="1" >是</option>
                        <option value="0">否</option>
                    </select>
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>
